package com.yingxin.yx.framework.render.core.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;

@Data
public class Column implements Serializable {

    private String name;

    private String field;

    /**
     * 是否特殊显示， 0 否， 1 是（在通过，拒绝时显示）
     * @return
     */
    private String isSpecialSisplay;

    /**
     * 单行显示
     */
    private Boolean isRow;

    @JsonIgnore
    private Integer sort;

    @JsonIgnore
    private Integer group;

    @JsonIgnore
    private String groupName;

    private String isDataType;

    public Column() {
    }

    public Column(String name, String field, Integer sort, Integer group, String groupName,
                  String isSpecialSisplay,Boolean isRow, String isDataType ) {
        this.name = name;
        this.field = field;
        this.sort = sort;
        this.group = group;
        this.groupName = groupName;
        this.isRow = isRow;
        this.isSpecialSisplay = isSpecialSisplay;
        this.isDataType = isDataType;
    }

}
